<?php


namespace XinYaTable\Forms\Services;


use Illuminate\Database\DatabaseManager;

class BaseService {
    protected $dataManager;
    
    public function __construct() {
        $this->setDataManager();
    }
    
    /**
     * @return void
     */
    public function setDataManager() {
        $this->dataManager = app(DatabaseManager::class);
    }
    
    /**
     * @return mixed
     */
    public function getDataManager(): DatabaseManager {
        return $this->dataManager;
    }
}